﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="InterestRate.aspx.cs" Inherits="Plublic_Cards" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            text-align: right;
            color: #FFFFFF;
            font-weight: bold;
            width: 116px;
        }
        .style2
        {
            width: 116px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <form method="post" runat="server">
    <table style="width: 100%;">
        <tr>
            <td class="style1">
                Rate Type :
            </td>
            <td>
                <asp:TextBox ID="txtRateType" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style1">
                Interest Rate :
            </td>
            <td>
                <asp:TextBox ID="txtInterestRate" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style1">
                Description:
            </td>
            <td>
                <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
                <asp:Button ID="btnAdd" runat="server" Text="Save" OnClick="btnAdd_Click" Width="61px" />
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Update" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <div class="CSSTableGenerator">
        <asp:GridView ID="GRVInRate" runat="server" AutoGenerateColumns="False" DataKeyNames="InterestRatesID"
            BackColor="#FFFFCC" Width="70%" OnRowCommand="GRVInRate_RowCommand">
            <Columns>
                <asp:TemplateField HeaderText="Interest Rate ID">
                    <ItemTemplate>
                        <%# Eval("InterestRatesID")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Rate type">
                    <ItemTemplate>
                        <%# Eval("Ratetype")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Interest Rate">
                    <ItemTemplate>
                        <%# Eval("InterestRate")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Descriptions">
                    <ItemTemplate>
                        <%# Eval("Descriptions")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnView" runat="server" CausesValidation="False" CommandName="View"
                            Width="50" Text="View" CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'>
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    </form>
</asp:Content>
